/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;

import Model.Pet;
import java.util.List;

/**
 *
 * @author beto86
 */
public class DaoPet extends DaoBase<Pet>{

    @Override
    public List<Pet> findByName(String name) {
        QParameter<String, String> parameter = new QParameter<>("name", name);
        return search("searchName", parameter);
    }

	
	public List<Pet> findAll() {
				
		return search("allPets");
	}
    
}
